<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>JSP - Hello World</title>
</head>
<body>
<h1>index page</h1>
<form action="/employee" method="post">
    <%-- 隐藏于 作用是跳脚了用户的请求 提交到了EmployeeServlet 里面 --%>
    <input type="hidden" name="action" value="sign_in">
    <input type="number" name="id" placeholder="ID" required>
    <br>
    <input type="password" name="password" placeholder="PASSWORD" required>
    <br>
    <input type="submit" value="Sign in">
    <a href="sign_up.jsp">Sign up</a>
</form>
<%--注册成功--%>
<%--<h1 style="color: green"><%=session.getAttribute("message")%></h1>--%>
<h1 style="color: green">${sessionScope.message}</h1>
<%--注册失败--%>
<%--<p style="color: red"><%=request.getAttribute("error")%></p>--%>
<p style="color: red">${requestScope.error}</p>

</body>
<%
    application.setAttribute("key", "value new");
%>
</html>